{include(head.tpl)}
<body>

        <form id="frm">
            <table class="table3">
                <tr>
                    <th>登陆名:</th>
                    <td>{loginname}</td>
                </tr>
                <tr>
                    <th>旧密码:</th>
                    <td><input type="password" name="oldpwd" value=""></td>
                </tr>
                <tr>
                    <th>新密码:</th>
                    <td><input type="password" name="newpwd" value=""></td>
                </tr>
                <tr>
                    <th>重复新密码:</th>
                    <td><input type="password" name="pwd" value=""></td>
                </tr>
                <tr>
                    <th></th>
                    <td>
                        <input type="button" class="h_sub submit" value="提交">
                    </td>
                </tr>
            </table>
        </form>

<script>
    $(function(){
        $('.h_sub').click(function(){
          var arr=_ajaxs.from('#frm');
          _ajaxs.post('{mothedurl}','arr='+arr,function _return(hdata){
              if(hdata.status){
                  layer.msg(hdata.msg,function(){
                      window.parent.layer.close(layer.index);
                  });
              }else{
                layer.msg(hdata.msg);
              }
          })
        })
    })
</script>
</body>
</html>
